package com.action;


import com.service.IHelloWorldService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloAction {

    @Reference
    private IHelloWorldService helloWorldService;

    @RequestMapping("/hello")
    public String hello()
    {
        int sum = helloWorldService.add(2,3);
        return sum+"";
    }
}
